package com.qr.bean.wmyw;

import com.baomidou.mybatisplus.annotation.Version;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotNull;
/**
 * @author: zc
 * email: zc8023zs@163.com
 * create_time: 2020/8/13 10:21:26
 * 分离出查询实体
 */
@ApiModel(value = "qr_category", description = "商品分类")
@TableName(value = "qr_category")
public class QrCategoryView implements Serializable {
	@ApiModelProperty(value = "主键")
	@TableId(type = IdType.AUTO,value = "category_id")
	@NotNull(message = "主键不能为空")
	private Integer category_id;
	@ApiModelProperty(value = "运营中心id")
	@TableField(value="oc_id")
	private Integer oc_id;
	@ApiModelProperty(value = "店铺/门店id")
	@TableField(value="shop_id")
	private Integer shop_id;
	@ApiModelProperty(value = "名称")
	@TableField(value="name")
	private String name;
	@ApiModelProperty(value = "描述")
	@TableField(value="description")
	private String description;
	@ApiModelProperty(value = "是否可用:开启=1 关闭=0")
	@TableField(value="enabled")
	private Long enabled;
	@ApiModelProperty(value = "数据版本字段")
	@TableField(value="version_id")
	@Version
	private Integer version_id;

 
	public Integer getCategory_id() {
		return category_id;
	}
	public void setCategory_id(Integer category_id) {
		this.category_id = category_id;
	}
 
	public Integer getOc_id() {
		return oc_id;
	}
	public void setOc_id(Integer oc_id) {
		this.oc_id = oc_id;
	}
 
	public Integer getShop_id() {
		return shop_id;
	}
	public void setShop_id(Integer shop_id) {
		this.shop_id = shop_id;
	}
 
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
 
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
 
	public Long getEnabled() {
		return enabled;
	}
	public void setEnabled(Long enabled) {
		this.enabled = enabled;
	}
 
	public Integer getVersion_id() {
		return version_id;
	}
	public void setVersion_id(Integer version_id) {
		this.version_id = version_id;
	}

}